﻿/*----------------------------------------------------------------
           // Copyright (C) 2008 安华顺通(北京)科技有限公司
           // 版权所有。 
           //
           // 文件名：RECID.cs
           // 文件功能描述：
           //
           // 
           // 创建标识：丁余良 2008 2008-9-8 10:21:21   建立文件
           //
           // 修改标识  //update1  at date...
           // 修改描述：
           //
           // 修改标识：//update2  at date...
           // 修改描述：
//----------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RuleCode.ObjectTree;


namespace RuleCode.Common
{
    public class TRECID : TInt64
    {
        public TRECID() : base() {  this.ExtendDataType=typeof (ERECID);  }
        public TRECID(Int64 _OId) : base(_OId) { this.ExtendDataType=typeof (ERECID);}
        //ReadOnly 
        public static string Caption { get { return "RECID"; } }

        public static implicit operator TRECID(Int64 x) { return new TRECID(x); }
        public static explicit operator Int64(TRECID x) { return x.Value; }
        public static explicit operator bool(TRECID x) { return x.Value == DefaultValue; }

       
                    public override  TableFieldInt64Property Property
                    {
                        get
                        {
                            if (this.property == null)
                            {
                                this.property = new TableFieldInt64Property();
                                
                                this.property.GroupPrompt = "" ;  this.property.SaveContents = Convert.ToBoolean ("True") ;  this.property.Mandatory = Convert.ToBoolean ("False") ;  this.property.AllowEditOnCreate = Convert.ToBoolean ("True") ;  this.property.AllowEdit = Convert.ToBoolean ("True") ;  this.property.Visible = Convert.ToBoolean ("True") ;  this.property.AliasFor = "" ;  this.property.ExtendedDataType = "TRECID" ;  this.property.FieldType = "TInt64" ;  this.property.HelpLabel = "" ;  this.property.HelpText = "" ;  this.property.Name = "RECID" ;  this.property.Label = "" ;  this.property.LabelText = "RECID" ;  this.property.ID = "3999998" ;  this.property.Creator = "" ;  this.property.ChangedBy = "" ;  this.property.CreationDate =Convert.ToDateTime ( "2009-2-19 12:10:50" );  this.property.ChangedDate =Convert.ToDateTime ( "2009-2-19 12:10:50" ); 
                                }
                                
                                return this.property;
                            }
                        }
                       
        
    }

    public class ERECID : EInt64
    {
        public ERECID() : base() { }
        public ERECID(Int64 _OId) : base(_OId) { }
        //ReadOnly 
        public static string Caption { get { return "RECID"; } }

        public static implicit operator ERECID(Int64 x) { return new ERECID(x); }
        public static explicit operator Int64(ERECID x) { return x.Value; }
        public static explicit operator bool(ERECID x) { return x.Value == DefaultValue; }
    }
}
